<div class="scrollbox" id="weekBox">
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @monday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
          </td>
        </tr>
      <%end%>
    </tbody>
  </table>
  <!-- 2 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @tuesday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <!-- kevin -->
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>

              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <%end%>
    </tbody>
  </table>
  <!-- 3 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @wednesday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>

              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <% end -%>
    </tbody>
  </table>
  <!-- 4 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @thursday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>

              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <%end%>
    </tbody>
  </table>
  <!-- 5 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @friday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>
              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <% end -%>
    </tbody>
  </table>
  <!-- 6 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @saturday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>
              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <% end -%>
    </tbody>
  </table>
  <!-- 7 -->
  <table>
    <thead>
      <tr>
        <th class="timeta-name">课程名称</th>
        <th class="timeta-type">课程类型</th>
        <th class="timeta-tea">导师</th>
        <th class="timeta-time">时间</th>
        <th class="timeta-class">教室</th>
        <th class="curl-operation">操作</th>
      </tr>
    </thead>
    <tbody>
      <% @sunday.each do |course| %>
        <tr>
          <td><%= course.course_info.name %></td>
          <td><%= course.course_info.course_type %></td>
          <td><%= course.course_info.teacher.name %></td>
          <td><%= course.course_time.strftime("%Y-%m-%d %H:%M") %></td>
          <td><%= course.course_info.room.room_name %></td>
          <td class="curl-operation">
            <span>[</span>
            <em><%= link_to "查看详情", action: "get_course_week_detail", id: course.id %></em>
            <span>]</span>
            <span>[</span>
            <em><%= link_to "学员签到", student_check_admin_course_week_path(course),remote: true %></em>
            <span>]</span>
            <% unless course.teacher_checked(course.course_info.teacher) %>
              <span>[</span>
              <em><%= link_to "导师签到", teacher_check_admin_course_week_path(course),remote: true %></em>
              <span>]</span>
            <%end%>
          </td>
        </tr>
      <% end -%>
    </tbody>
  </table>
</div>
